package org.hchdubbo.config;

import org.hchdubbo.consumer.ServiceDiscover;
import org.hchdubbo.consumer.entity.ZkApplicationConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @Author: HeCongHui
 * @Time :2021/12/15 11:41
 */
public class HchAutoConfig {
    @Bean
    public ServiceDiscover getServiceDiscover() {
        return new ServiceDiscover();
    }

    @Bean
    @ConfigurationProperties(prefix = "hch.zk")
    public ZkApplicationConfig getZkApplicationConfig() {
        return new ZkApplicationConfig();
    }

}
